#include "includes.h"


OS_STK        AppStk_one[TASK_STK_SIZE];



static void App_one(void *p_arg);
static void output(char *info,OS_MEM *p);

void *ptr;

void main(int argc, char *argv[])
{
    OSInit();                              /* Initialize "uC/OS-II"*/

	TaskCreate();
    OSStart();                             /* Start multitasking */
}


#if 0
void App_one(void *p_arg)
{
	p_arg = p_arg;

	while(1)
	{
		printf("Task1 is running!\n");
		OSTimeDlyHMSM(0, 0, 0, 100);
	}

}
#endif


void output(char *info,OS_MEM *p)
{
	printf("%s\n",info);
	printf("OSMemAddr=%p\n",p->OSMemAddr);
	printf("OSMemFreeList=%p\n",p->OSMemFreeList);
	printf("OSMemBlkSize=%d\n",p->OSMemBlkSize);
	printf("OSMemName=%s\n",p->OSMemName);
	printf("OSMemNFree=%d\n",p->OSMemNFree);
	printf("OSMemNBlks=%d\n",p->OSMemNBlks);
}